package com.dh.example.netty.pojo;

import com.dh.example.netty.pojo.response.WsBaseResp;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author yolo
 * @date 2024/3/18 19:41
 * @mail yolo_215@163.com
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class WsMessageWrapper<T> {
    /**
     * 用户id
     * socket端根据用户id传递给对应的会话信息
     */
    private List<Long> userIdsList;

    /**
     * 客户端类型
     */
    private String clientType;

    /**
     * 推送所有人
     */
    private Boolean pushAll;

    /**
     * ws base resp
     */
    private WsBaseResp<T> wsBaseResp;
}
